﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using JMT.Controls.Panels.ProPanels;
using JMT.Data;

namespace JMT.Controls.Panels
{
    public static class JPropPanelFactory
    {
        public static IJPropPanel Create(string typeName)
        {
            IJPropPanel propPanel = null;
            switch (typeName)
            {
                case JConstString.TClass:
                    propPanel = new JClassPropPanel();
                    break;
                case JConstString.TDiagram:
                    propPanel = new JDiagramPropPanel();
                    break;
                case JConstString.TPackage:
                    propPanel = new JPackagePropPanel();
                    break;
                case JConstString.TSolution:
                    propPanel = new JSolutionPropPanel();
                    break;
            }
            return propPanel;
        }
    }
}
